package com.yaoxuguang.concurrence.synchronizedpackage.LockReenter;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.synchronizedpackage.LockReenter
 * @Description: synchronized锁重入
 * @date 2018年12月18日10:29
 */
public class MyThread extends Thread {
    private  Service service;

    public MyThread(Service service) {
        this.service = service;
    }

    @Override
    public void run() {
        service.service1();
    }
}
